Remove the arguments from `BuildConfig` and append them to the profile that's being...
authorSondre Lefsaker <sondrele@stud.ntnu.no>
Sat, 2 May 2015 14:30:16 +0000 (16:30 +0200)
committerSondre Lefsaker <sondrele@stud.ntnu.no>
Sat, 2 May 2015 15:43:11 +0000 (17:43 +0200)
commit582e9d94a856f6813b9820d569a4a70053966346
treeec7193145e6b6c3c69c0e9375a62113b6b36a7b8
parent53453c8e8d3ca3fabc86e30c892f788e5e6e248c
Remove the arguments from `BuildConfig` and append them to the profile that's being compiled instead.
- An error will be returned if the length of `targets` is not 1
- The profile of `targets` gets cloned in order to append the extra arguments.
- The new test verifies that the build fails due to both `lib` and `main` being compiled
src/cargo/ops/cargo_compile.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_rustc.rs